package com.example.mybatis.plus.model.dto;

import java.util.Objects;

public class IdSegmentAggDTO {
    private int step;
    private long count;

    public int getStep() {
        return step;
    }

    public void setStep(int step) {
        this.step = step;
    }

    public long getCount() {
        return count;
    }

    public void setCount(long count) {
        this.count = count;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof IdSegmentAggDTO)) return false;
        IdSegmentAggDTO that = (IdSegmentAggDTO) o;
        return getStep() == that.getStep() && getCount() == that.getCount();
    }

    @Override
    public int hashCode() {
        return Objects.hash(getStep(), getCount());
    }
}
